import axios from '@/axios';

// 客户列表
export function userList(data) {
    return axios({
        url: '/kehu/user-list',
        method: 'post',
        data
    })
}

// 创建客户
export function createUser(data) {
    return axios({
        url: '/kehu/create-user',
        method: 'post',
        data
    })
}

// 转移客户
export function transfer(data) {
    return axios({
        url: '/kehu/transfer',
        method: 'post',
        data
    })
}

// 分享客户
export function share(data) {
    return axios({
        url: '/kehu/share',
        method: 'post',
        data
    })
}

// 客户详情
export function userInfo(data) {
    return axios({
        url: '/kehu/infos',
        method: 'post',
        data
    })
}

// 修改状态
export function changeStatus(data) {
    return axios({
        url: '/kehu/change-status',
        method: 'post',
        data
    })
}

// 添加跟进记录
export function addFollow(data) {
    return axios({
        url: '/kehu/add-follow',
        method: 'post',
        data
    })
}

// 跟进记录
export function followList(data) {
    return axios({
        url: '/kehu/follow-list',
        method: 'post',
        data
    })
}

// 添加待办
export function addSomething(data) {
    return axios({
        url: '/kehu/add-something',
        method: 'post',
        data
    })
}

// 代办信息
export function somethingLog(data) {
    return axios({
        url: '/kehu/something-log',
        method: 'post',
        data
    })
}

// 上传电话
export function addPhone(data) {
    return axios({
        url: '/kehu/add-phone',
        method: 'post',
        data
    })
}

// 电话记录
export function phoneLog(data) {
    return axios({
        url: '/kehu/phone-log',
        method: 'post',
        data
    })
}

// 日志
export function userLog(data) {
    return axios({
        url: '/kehu/log',
        method: 'post',
        data
    })
}

// 多个客户
export function manyUserInfo(data) {
    return axios({
        url: '/kehu/many-user-info',
        method: 'post',
        data
    })
}

// 删除客户
export function delUser(data) {
    return axios({
        url: '/kehu/del-user',
        method: 'post',
        data
    })
}

// 客户订单
export function order(data) {
    return axios({
        url: '/kehu/order',
        method: 'post',
        data
    })
}

// 客户商机
export function business(data) {
    return axios({
        url: '/kehu/business',
        method: 'post',
        data
    })
}

// 预约列表
export function reservation(data) {
    return axios({
        url: '/kehu/reservation',
        method: 'post',
        data
    })
}

// 广告信息
export function adInfo(data) {
    return axios({
        url: '/kehu/ad-info',
        method: 'post',
        data
    })
}

// 批量设置标签
export function setManyTag(data) {
    return axios({
        url: '/kehu/set-many-tag',
        method: 'post',
        data
    })
}

// 公共客户列表
export function gongUserList(data) {
    return axios({
        url: '/kehu/gong-user-list',
        method: 'post',
        data
    })
}

// 领取客户
export function lingqu(data) {
    return axios({
        url: '/kehu/lingqu',
        method: 'post',
        data
    })
}

// 分配客户
export function fenpei(data) {
    return axios({
        url: '/kehu/fenpei',
        method: 'post',
        data
    })
}

// 恢复至客户池
export function resetUser(data) {
    return axios({
        url: '/kehu/reset-user',
        method: 'post',
        data
    })
}

// 彻底删除
export function completeDel(data) {
    return axios({
        url: '/kehu/complete-del',
        method: 'post',
        data
    })
}

// 退回
export function quit(data) {
    return axios({
        url: '/kehu/quit',
        method: 'post',
        data
    })
}
